package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * BroadMessage entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "broad_message", catalog = "imcdbserver")
public class BroadMessage implements java.io.Serializable {

	// Fields

	private long num;
	private String messageType;
	private String timeStamp;
	private String timeLimit;
	private String content;

	// Constructors

	/** default constructor */
	public BroadMessage() {
	}

	/** full constructor */
	public BroadMessage(String messageType, String timeStamp, String timeLimit,
			String content) {
		this.messageType = messageType;
		this.timeStamp = timeStamp;
		this.timeLimit = timeLimit;
		this.content = content;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "num", unique = true, nullable = false)
	public long getNum() {
		return this.num;
	}

	public void setNum(long num) {
		this.num = num;
	}

	@Column(name = "message_type", length = 65535)
	public String getMessageType() {
		return this.messageType;
	}

	public void setMessageType(String messageType) {
		this.messageType = messageType;
	}

	@Column(name = "time_stamp", length = 20)
	public String getTimeStamp() {
		return this.timeStamp;
	}

	public void setTimeStamp(String timeStamp) {
		this.timeStamp = timeStamp;
	}

	@Column(name = "time_limit", length = 20)
	public String getTimeLimit() {
		return this.timeLimit;
	}

	public void setTimeLimit(String timeLimit) {
		this.timeLimit = timeLimit;
	}

	@Column(name = "content", length = 16777215)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}